package top.lyunz.fangkeji.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import top.lyunz.fangkeji.bean.Company;
import top.lyunz.fangkeji.bean.pageselect;
import top.lyunz.fangkeji.mapper.companyMapper;
import top.lyunz.fangkeji.service.companyService;
@Service
public class companyServiceImpl implements companyService {
	@Autowired
	private companyMapper companyMapper;
	@Override
	public int companyAdd(Company company) {
		// TODO Auto-generated method stub
		return companyMapper.companyAdd(company);
	}
	@Override
	public Company getCompanyBycIdentity(String cIdentity) {
		// TODO Auto-generated method stub
		return companyMapper.getCompanyBycIdentity(cIdentity);
	}
	@Override
	public int delByCid(int cid) {
		// TODO Auto-generated method stub
		return companyMapper.delByCid(cid);
	}
	@Override
	public List<Company> getCompaniesBypage(pageselect pageselect) {
		// TODO Auto-generated method stub
		return companyMapper.getCompaniesBypage(pageselect);
	}
	
	@Override
	public int updCompany(Company company) {
		// TODO Auto-generated method stub
		return companyMapper.updCompany(company);
	}
	@Override
	public List<Company> getCompaniesByParentLevel(int cid) {
		// TODO Auto-generated method stub
		return companyMapper.getCompaniesByParentLevel(cid);
	}
	@Override
	public Company getCompanyByCid(int cid) {
		// TODO Auto-generated method stub
		return companyMapper.getCompanyByCid(cid);
	}
	@Override
	public List<Company> getAllAuthorizationCompanyByeSn(String eSn) {
		// TODO Auto-generated method stub
		return companyMapper.getAllAuthorizationCompanyByeSn(eSn);
	}
	@Override
	public List<Company> getCompaniesByCname(String cName) {
		// TODO Auto-generated method stub
		return companyMapper.getCompaniesByCname(cName);
	}

}
